package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;

/**
 * 商品sku表
 *
 * @author Clevo
 * @date 2018/9/16
 */
public class CommoditySku extends BasePojo {

    @ManyToOne
    @JoinColumn(name = "commodity_id")
    public Commodity commodity;
    /**
     * 价格
     */
    public BigDecimal price;
    /**
     * 库存
     */
    public Integer stock;
    /**
     * 属性名字符串
     */
    public String data;

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
